package com._520it.crm.service.impl;

import com._520it.crm.domain.Driver;
import com._520it.crm.mapper.DriverMapper;
import com._520it.crm.service.IDriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DriverServiceImpl implements IDriverService {
    @Autowired
    private DriverMapper driverMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return driverMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Driver record) {
        return driverMapper.insert(record);
    }

    @Override
    public Driver selectByPrimaryKey(Long id) {
        return driverMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Driver> selectAll() {
        return driverMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Driver record) {
        return driverMapper.updateByPrimaryKey(record);
    }
}
